﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebClient.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% 
        var restaurant = Model.RestaurantModel.GetModel.LstObjModel[0];
        var Users = Model.UsersModel.GetModel.LstObjModel[0];
    %>
    <div id="content">
        <div id="container_new">
            <div id="div55">&nbsp;</div>
            <div id="divleft_approve">
                <h1 class="h1">Approve order</h1>
                <% using (Html.BeginForm("AddOrder", "Home", FormMethod.Post))
                   { %>
                    <div id="header_approve_1"><h2 style="font-size: 14px; font-weight: bold;">Receiver's address Details</h2></div>
                    <div id="address_box_right">
                    </div>
                    <div id="clear"></div>
                    <div id="greyline"></div>
                    <div style="float:left; width: 500px;">
                        <div id="clear"></div>
                        <div id="approve_left">Receiver's Name</div>
                        <div style="float:left; padding: 3px 0; text-align: left; width: 400px;">
                            <input type="text" name="Order_ReceiverName" id="phone" class="approve_text_input_1" title="You can only make an order with a valid phone number!" value="<%= Users.Name %>" style="width: 150px;" />
                        </div>
                        <div style="clear: both;"></div>
                        <div id="clear"></div>
                        <div id="approve_left">Receiver's Phone</div>
                        <div style="float:left; padding: 3px 0; text-align: left; width: 400px;">
                            <input type="text" name="Order_ReceiverPhone" id="phone" class="approve_text_input_1" title="You can only make an order with a valid phone number!" value="<%= Users.Phone %>" style="width: 100px;" />
                        </div>
                        <div style="clear: both;"></div>
                        <div id="clear"></div>
                        <div id="approve_left">Receiver's Address</div>
                        <div style="float:left; padding: 3px 0; text-align: left; width: 400px;">
                            <input type="text" name="Order_ReceiverAddress" id="phone" class="approve_text_input_1" title="You can only make an order with a valid phone number!" value="<%= Users.Address %>" style="width: 400px;" />
                        </div>
                    </div>
                    <div id="clear"></div>
                    <br>
                    <h2 style="font-size: 14px; font-weight: bold; margin-bottom: 10px;">Order details</h2>
                    <div id="greyline"></div>
                    <div id="approve_left_block" style="width: 270px;">
                        <div id="approve_left">Payment Type*</div>
                        <div id="approve_left_input_pay">
                            <img src="http://www.vietnammm.com/images/iconcashsml.jpg" title="Cash" width="16" height="12" border="0"> Cash<br />
                        </div>
                        <div id="clear"></div>
                    </div>
                    <div id="approve_right_block" style="width: 250px;">
                        <div id="pay_amount">
                            <div id="approve_left">Pay with</div>
                            <div id="approve_right_input_payw" style="width: 100px;">
                                <%= Model.ShoppingCartModel.CartTotal%> USD
                            </div>
                            <div id="clear"></div>
                        </div>
                    </div>
                    <div id="clear"></div>
                    <br />
                    <div style="float:left; width: 500px;">
                        <div id="approve_left">Delivery notes</div>
                        <div id="Div2">
                            <textarea style="width: 392px;" name="Order_DeliveryNote" id="approve_text_area" title="Use this field to give address directions or instructions to the kitchen. Do not order food in this field!" /></textarea>
                        </div>
                        <div id="Div3"></div>
                        <div id="voucher"></div>
                    </div>
                     <div id="clear"></div>
                    <div style="padding-right:25px;">
                        <br>
                        <div style="text-align: right;">
                            <input type="hidden" name="Order_IDRestaurant" value="<%= restaurant.ID %>" />
                            <input type="hidden" name="Order_IDUsers" value="<%= Users.ID.ToString() %>" />
                            <input type="submit" name="sbt" id="sbt" class="submitbutton" value="I confirm my order" />
                        </div>
                    </div>
                <% } %>
            </div>
            <div style="margin-top:10px;">&nbsp;</div>
            <div class="divright" style="height: 500px;">
                <% Html.RenderPartial("Templates/TH_Right", Model); %>
            </div>
        </div>
    </div>
</asp:Content>
